import request from '@/utils/request'

export function getCollges() {
  return request({
    // url: '/vue-element-admin/colleges',
    url: '/colleges',
    method: 'get'
  })
}

export function getMajors(collegeId) {
  return request({
    // url: `/vue-element-admin/majors`,
    url: `/colleges/${collegeId}/majors`,
    method: 'get'
  })
}
